package com.itheima.day02.ZuoYe.ZuoYe3_7;

public class Student extends Person{
    private String experience;

    public Student() {
    }

    public Student(String experience) {
        this.experience = experience;
    }

    public Student(String name, int age, String address, String experience) {
        super(name, age, address);
        this.experience = experience;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    @Override
    public void write() {
        System.out.println(getExperience());
    }
}
